package com.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.web.model.ResponseData;
import com.web.params.RegistryParams;
import com.web.service.UserService;


@RestController
@RequestMapping("/registry")
public class RegistryController {
	@Autowired
	private UserService userService;
 
	@PostMapping
	public ResponseData regitry(@RequestBody RegistryParams params) {
		ResponseData responseData =userService.registry(params);
	return  responseData;
}
  
  
}
